<p-dialog header="选择设备" [(visible)]="display" modal="modal" [width]="width"  [responsive]="true" (onHide)="onHide()">
    <div class="content-section  GridDemo clearfixes">
        <div class="ui-grid ui-grid-responsive ui-grid-pad ui-fluid" style="margin: 10px 0px">
            <div class="mysearch">
                <div class="ui-g">
                    <div >
                        <label for="">设备编号：</label>
                        <input type="text" pInputText  [(ngModel)]="searchObj.ano"/>
                    </div>
                    <div >
                        <label for="">设备名称：</label>
                        <input type="text" pInputText  [(ngModel)]="searchObj.name"/>
                    </div>
                    <div >
                        <label for="">状态：</label>
                        <p-dropdown [options]="allStatus" [(ngModel)]="searchObj.status" [style]="{'width':'77%'}"></p-dropdown>
                    </div>
                    <div>
                        <button pButton type="button"  label="查询" (click)="searchSchedule()"></button>
                    </div>
                    <div>
                        <button pButton type="button"  label="清空" (click)="clearSearch()"></button>
                    </div>
                </div>
            </div>
            <p-dataTable [value]="scheduleDatas" [(selection)]="selectEquip" id="malfunctionTable">
                <p-column selectionMode="multiple" ></p-column>
                <p-column field="ano" header="设备编号" [sortable]="true">
                    <ng-template let-data="rowData" pTemplate="operator">
                        <span>{{data.ano}}</span>
                    </ng-template>
                </p-column>
                <p-column field="name" header="设备名称" [sortable]="true"></p-column>
                <p-column field="occurrence_time" header="设备分类" [sortable]="true"></p-column>
                <p-column field="modle" header="型号" [sortable]="true"></p-column>
                <p-column field="location" header="位置" [sortable]="true"></p-column>
                <p-column field="status" header="状态" [sortable]="true"></p-column>
                <ng-template pTemplate="emptymessage">
                    当前没有数据
                </ng-template>
            </p-dataTable>
            <p-paginator rows="10" [totalRecords]="totalRecords" [rowsPerPageOptions]="[10,20,30]" (onPageChange)="paginate($event)"></p-paginator>
        </div>
    </div>
    <p-footer>
        <button type="button" pButton icon="fa-check"  label="确定" (click)="sure()" ></button>
        <button type="button" pButton icon="fa-close" (click)="cancel()" label="取消"></button>
    </p-footer>
</p-dialog>




<!--<p-paginator rows="10" totalRecords="{{total}}" [rowsPerPageOptions]="[10,20,30]" pageLinkSize="3"  (onPageChange)="paginate($event)"></p-paginator>-->
